//
//  Common.swift
//  新浪微博
//
//  Created by mac on 16/5/22.
//  Copyright © 2016年 mac.com. All rights reserved.
//

import UIKit

//在同一个命名空间下 所有的文件默认贡献
//屏幕的宽和高
let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height
//用户登录授权配置信息
let client_id = "1128099086"
let client_secret = "dd4af5afc14847df1f209e6a05a24899"
let redirect_uri = "http://www.itheima.com"
//对齐的边距
let StatusCellMargin: CGFloat = 8
//通知名称
let SwitchRootViewController = "SwitchRootViewController"
//定义通用错误信息
let AppErrorTip = "网络君正在睡觉,请稍后再试"
let sharedDF = NSDateFormatter()
//随机色
func randomColor() -> UIColor {
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}
